package com.dongan.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 制造表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_manufacture")
public class Manufacture implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键不自增
     */
      @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 制造ID
     */
    @TableField("MANUFACTURE_ID")
    private String manufactureId;

    /**
     * 产品ID
     */
    @TableField("PRODUCT_ID")
    private String productId;

    /**
     * 产品名称
     */
    @TableField("PRODUCT_NAME")
    private String productName;

    /**
     * 总数
     */
    @TableField("AMOUNT")
    private BigDecimal amount;

    /**
     * 测试的数量
     */
    @TableField("TESTED_AMOUNT")
    private BigDecimal testedAmount;

    /**
     * 应用ID组
     */
    @TableField("APPLY_ID_GROUP")
    private String applyIdGroup;

    /**
     * 产品描述
     */
    @TableField("PRODUCT_DESCRIBE")
    private String productDescribe;

    /**
     * 模块成本价格总和
     */
    @TableField("MODULE_COST_PRICE_SUM")
    private BigDecimal moduleCostPriceSum;

    /**
     * 实际模块成本价格总和
     */
    @TableField("REAL_MODULE_COST_PRICE_SUM")
    private BigDecimal realModuleCostPriceSum;

    /**
     * 人工成本价格总和
     */
    @TableField("LABOUR_COST_PRICE_SUM")
    private BigDecimal labourCostPriceSum;

    /**
     * 实际人工成本价格总和
     */
    @TableField("REAL_LABOUR_COST_PRICE_SUM")
    private BigDecimal realLabourCostPriceSum;

    /**
     * 设计者
     */
    @TableField("DESIGNER")
    private String designer;

    /**
     * 登记人
     */
    @TableField("REGISTER")
    private String register;

    /**
     * 登记时间
     */
    @TableField("REGISTER_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date registerTime;

    /**
     * 检验员
     */
    @TableField("CHECKER")
    private String checker;

    /**
     * 检验时间
     */
    @TableField("CHECK_TIME")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /**
     * 注意
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 检验标签
     */
    @TableField("CHECK_TAG")
    private String checkTag;

    /**
     * 制造过程标签
     */
    @TableField("MANUFACTURE_PROCEDURE_TAG")
    private String manufactureProcedureTag;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 逻辑删除(0:true不删除,1:false删除)
     */
    @TableLogic
    private Integer deleted;


}
